<!--
 * @Descripttion: 
 * @version: 
 * @Author: 
 * @Date: 2019-09-28 09:28:27
 -->
<template>
  <div id="MetamodelManagement">
    <div class="container">
      <div class="view">
        <div class="aside">
          <el-scrollbar :native="false"
                        tag="section"
                        class="el-scroll">
            <el-tree :data="treeData"
                     default-expand-all></el-tree>
          </el-scrollbar>

        </div>
        <el-divider direction="vertical"></el-divider>
        <div class="right">
          <div class="container">
            <div class="view">
              <div class="topTitle">
                <h1>系统元模型</h1>
              </div>

              <div class="top tr">
                <el-button type="primary"
                           size="small">版本对比</el-button>
                <el-button type="primary"
                           size="small">新建版本</el-button>
              </div>
              <div class="table">
                <el-scrollbar :native="false"
                              tag="section"
                              class="el-scroll">
                  <el-table :data="tableData"
                            :header-cell-style="{background:'#eef1f6',color:'#606266'}"
                            v-loading="Loading"
                            element-loading-text="数据加载中"
                            element-loading-spinner="el-icon-loading"
                            element-loading-background="rgba(21, 29, 54, 0.8)"
                            border
                            highlight-current-row
                            @selection-change="selChange">
                    <el-table-column type="selection"
                                     width="35"></el-table-column>
                    <el-table-column align="center"
                                     :show-overflow-tooltip="true"
                                     prop="orgName"
                                     label="组织名称"></el-table-column>
                    <el-table-column align="center"
                                     :show-overflow-tooltip="true"
                                     prop="count"
                                     label="发放次数"></el-table-column>
                    <el-table-column align="center"
                                     :show-overflow-tooltip="true"
                                     prop="sum"
                                     label="合计金额"></el-table-column>
                    <el-table-column align="center"
                                     :show-overflow-tooltip="true"
                                     prop="date"
                                     label="补贴月份"></el-table-column>
                    <el-table-column align="center"
                                     :show-overflow-tooltip="true"
                                     prop="balance"
                                     label="当前余额"></el-table-column>
                    <el-table-column label="操作"
                                     width="200"
                                     align="center">
                      <template slot-scope="scope">
                        <el-button size="mini"
                                   type="primary"
                                   @click="showList(scope.row)">明细</el-button>
                      </template>
                    </el-table-column>
                  </el-table>
                </el-scrollbar>
              </div>
              <div class="bottom">
                <el-pagination layout="total, sizes, prev, pager, next, jumper"
                               background
                               :page-count="10"
                               :page-sizes="[5, 10, 20, 40]"></el-pagination>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>
<script>
export default {
  name: 'MetamodelManagementView',
  props: {
    treeData: {
      type: Array,
      default: []
    },
    tableData: {
      type: Array,
      default: []
    }
  }
}
</script>
<style lang="less" scoped>
@import url("./MetamodelManagement.less");
</style>